$summon marker ~ ~ ~ {Tags:["VoidShop","VoidShop.entity","summon",GameCtrol,$(team)]}

#Background
$summon text_display ~ ~ ~ {Tags:["VoidShop.entity","VoidShop.background","summon1",GameCtrol],Rotation:[$(y_rotation)f,0.0f],text:'{"text":"\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\u00a0\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n"}',line_width:9999}
data modify entity @n[tag=summon1,type=text_display,distance=..1] transformation.translation[1] set value -0.5f
tp @n[tag=VoidShop.background,type=text_display,distance=..1] ~ ~1 ~

#Slots
$execute as @n[tag=VoidShop,distance=..1,type=marker] at @s rotated $(y_rotation) 0 run function vs:system/game_ctrol/void_shop/summon_slots
execute as @n[tag=summon,type=marker,distance=..1] run function vs:system/game_ctrol/void_shop/slot/read_items/start {start_index:0}

#PageButtons
$execute as @n[tag=VoidShop,distance=..1,type=marker] at @s rotated $(y_rotation) 0 run function vs:system/game_ctrol/void_shop/summon_page_buttons {team:$(team)}

#DisplayName
$summon text_display ~ ~ ~ {Tags:["VoidShop.entity","VoidShop.displayName","summon2",GameCtrol],Rotation:[$(y_rotation)f,0.0f],text:'{"text":"暗流商店","color": "#380e4d"}'}
tp @n[tag=summon2,type=text_display,distance=..1] ~ ~3.275 ~

tag @n[tag=summon,distance=..1,type=marker] remove summon
tag @n[tag=summon1,distance=..10,type=text_display] remove summon1
tag @n[tag=summon2,distance=..10,type=text_display] remove summon2